package com.dilili;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description: TODO
 * @Data: 2020-06-01 23:45
 * @Pacakge: com.dilili
 * @ClassName: HelloWorldServiceImpl
 * @Version: v1.0.0
 * @Author: dilili
 */
@FeignClient(value = "${remote.eureka.servername}")
@Component
public interface HelloWorldServiceImpl {
    @PostMapping(value = "/hi")
    String getHello(@RequestParam("name") String name);
}